<?php
/**
 * Created by PhpStorm.
 * User: DELL
 * Date: 2021/3/2
 * Time: 11:02
 */

namespace App\Api\V1\Controllers;


class GoodsController extends BaseController
{
    /**
     * 方法路由器
     * @access protected
     * @return void
     */

    protected static function initMethod()
    {
        self::$route = [
            // 添加一个商品
            'add.goods.item'          => ['addGoodsItem'],
            // 编辑一个应用
            'set.goods.item'            => ['setGoodsItem'],
            // 获取一个应用
            'get.goods.item'            => ['getGoodsItem'],
            //删除一个商品
            'del.goods.item'            => ['delGoodsItem'],
            // 获取应用列表
            'get.goods.list'            => ['getGoodsList'],
            // 批量删除应用
            'del.goods.list'            => ['delGoodsList'],
        ];
    }
}